<?php
use yii\helpers\Html;
use yii\widgets\DetailView;
?>

<div class="col-md-offset-1 col-md-10 panel panel-body" style="margin-top:30px;">
    <label>客人信息</label>

    <table class="table"> 
    <?php foreach($customers as $customer){ ?>
        <tr>
            <td><?= $customer->first_name ?><?= $customer->last_name ?> &nbsp;</td>
            <td><?= Yii::$app->params['gender'][$customer->gender] ?></td>
            <td><?= $customer->passport_add ?></td>
            <td><?= $customer->passport ?></td>
            <td><?= $customer->phone ?></td>
            <td>
                <a href="/order/customer/update?id=<?=$customer->id?>"><i class="fa fa-edit"></i></a>
            </td>
        </tr>
    <?php } ?>
    </table> 
    <br>
    <a data-toggle="modal" data-target=".customer-modal"  href="/order/customer/create?order_id=<?= $model->id?>" class="pull-right btn btn-default btn-sm">添加客户</a>
</div>


<div class="modal fade customer-modal" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel">
  <div class="modal-dialog " role="document">
      <div class="modal-content">
	 		<!-- 嵌入内容 --> 
	  </div>
  </div>
</div>

